package com.woniu.book.feign;

import com.woniu.user.domain.Customer;
import com.woniu.user.domain.CustomerCoupon;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user")
public interface UserFeign {
    @RequestMapping("/user/tbcustomer/feign/edit")
    public Integer editCustomer(@RequestBody Customer customer);

    @RequestMapping("/user/tbcustomercoupon/feign/editCustomerCouponStatus")
    public Integer editCustomerCouponStatus(@RequestParam("customerId") Integer customerId, @RequestParam("couponId") Integer couponId);

    @RequestMapping("/user/tbcustomercoupon/feign/getByCustomerIdAndCouponId")
    public CustomerCoupon getByCustomerIdAndCouponId(@RequestParam("customerId") Integer customerId, @RequestParam("couponId") Integer couponId);

}
